#include <msp430f169.h>

#include"Config.h"
#include"spi.h"


void main(void)
{
	WDTCTL = WDTPW | WDTHOLD;	// stop watchdog timer
	unsigned char i;
	P6DIR=0xff;
	P6OUT=0x00;
	unsigned char data[10]={9,8,7,6,5,4,3,2,1,0};
	Clock_Init();
	init_spi();
	while(1){
	    for(i=0;i<=9;i++){
	        P6OUT=0xff;
	        RW(data[i]);
	        delay_ms(1000);
	        P6OUT=0x00;
	    }
	}
	
}
